<?php include($folder.'/layouts/templates/backend/header.tpl') ?>
<?php if (!empty($_SESSION['id'])): ?>
<?php

$master['toolbarItems'] = array(
	'<input type="submit" value="Küldés" class="button" />',
	'<input type="button" value="Vissza" class="button" onclick="javascript:window.location.href=\''.$prefix.'/adminisztracio/kepek\'" />'
);
?>
<?php endif; ?>
<?php include($folder.'/layouts/templates/backend/middle.tpl') ?>
<?php if (!empty($_SESSION['id'])): ?>
	<input type="hidden" name="MAX_FILE_SIZE" value="20000000" />
	<table>
		<tr>
			<td>
				<span>Mennyiség:&nbsp;&nbsp;&nbsp;</span>
				<select name="numberOfFiles" onchange="javascript:SubmitForm()">
				<?php for($i=1;$i<=15;$i++): ?>
					<?php if ($i === (int)$_POST['numberOfFiles']): ?>
					<option value="<?php echo $i ?>" selected="selected"><?php echo $i ?></option>
					<?php else: ?>
					<option value="<?php echo $i ?>"><?php echo $i ?></option>
					<?php endif; ?>
				<?php endfor; ?>
				</select>
			</td>
		</tr>
		<?php for($i=0;$i<(int)$_POST['numberOfFiles'];$i++): ?>
		<tr>
			<td><input name="<?php echo $i ?>" type="file" size="70" style="width:600px" /></td>
		</tr>
		<?php endfor; ?>
	</table>
<?php endif; ?>
<?php include($folder.'/layouts/templates/backend/footer.tpl') ?>